<template>
    <div>
        <!--轮播图-->
        <lunbo :LunBoList="lunBoImages" :isfull="true"></lunbo>
        <!--轮播图-->

        <!--六宫格菜单-->
        <ul class="mui-table-view mui-grid-view mui-grid-9">
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <router-link to="/home/newsList">
                    <img src="../../images/menu1.png" alt="">
                    <div class="mui-media-body">新闻</div>
                </router-link>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <router-link to="/home/imagesList">
                    <img src="../../images/menu2.png" alt="">
                    <div class="mui-media-body">图片</div>
                </router-link>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <router-link to="/home/goodsList">
                    <img src="../../images/menu3.png" alt="">
                    <div class="mui-media-body">Chat</div>
                </router-link>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
                <a href="#">
                    <img src="../../images/menu4.png" alt="">
                    <div class="mui-media-body">location</div>
                </a>
            </li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <img src="../../images/menu5.png" alt="">
                <div class="mui-media-body">Search</div>
            </a></li>
            <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3"><a href="#">
                <img src="../../images/menu6.png" alt="">
                <div class="mui-media-body">Phone</div>
            </a></li>
        </ul>
        <!--六宫格菜单-->
    </div>
</template>

<script>
    import lunbo from '../publicComponents/lunbo.vue' //导入轮播图组件
    export default {
        data: function () {
            return {
                lunBoImages: []  //存放轮播图数据的
            }
        },
        methods: {
            getLunBoTo() { //获取轮播图数据
                this.$http.get('http://www.liulongbin.top:3005/api/getlunbo').then(data => {
                    this.lunBoImages = data.body.message;
                })
            }
        },
        created() {
            this.getLunBoTo();
        },
        components:{
            "lunbo":lunbo
        }
    }

</script>

<style scoped lang="less">
    .mui-table-view.mui-grid-view.mui-grid-9 { //六宫格相关的样式
        background-color: white;

        li {
            border: none;

            img {
                width: 60px;
                height: 60px;
            }

            .mui-media-body {
                font-size: 13px;
            }
        }
    }
</style>
